To make someone who's trying to seem important less important. Derives from the
piss-boner men wake up with in the morning, it's a fake boner. If you took the piss away, there would be no boner. Do you see?
That's the original meaning, however
taking the piss now means just giving someone a
ribbing and in the most part not meaning to be malicious.